package FanShe3;

public class User {
    private int age = 10;
    private String name = "王航波";

    public User() {

    }

    public User(String name) {
        this.name = name;
    }

    private User(int age, String name) {
        this.age = age;
        this.name = name;
    }

    @Override
     public String toString() {
     return "User{" +
    "age=" + age +
    ", name='" + name + '\'' +
    '}';
    }
}
